@import './includes/reset';
@import './includes/header';
@import './includes/footer';
/* 版心 */
body{
    min-width:1200px;
    background-color: #F6F6F6;
  }
  
  /* 顶部 */
  #top{
    width: 100%;
    height: 27px;
    background-color: #F2F2F2;
    .container{
      .text{ 
        height: 27px;
        font-size: 12px;
        line-height: 27px;
        color: #999999;
        width: 400px;
        display: flex;
        justify-content: space-around;
        a{
          cursor: pointer;
          color: #999999;
          &:hover{
            color: #DF8042;
          }
        }
        span{
          color:#ff0036;
          margin-right: 5px;
        }
      }
    }
  }
  
  /* 导航部分 */
  #nav{
    width: 100%;
    height: 161px;
    .container{
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-around;
       /* logo */
       .logo{
        width: 226px;
        height: 75px;
        display: flex;
        justify-content: space-between;
        margin-left: 20px;
          img{
            width: 75px;
            height: 100%;
          }
          div{
            font-family: Avenir,Helvetica,Arial,sans-serif;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
            h3{
              font-size: 28px;
              color: #3E2210;
            }
            span{
              font-size: 8px;
              font-family: Avenir,Helvetica,Arial,sans-serif;
            }
          }
    }
    /* search */
    .search{
      width: 532px;
      height: 46px;
      border: 2px solid #3F2511;
      border-radius: 24px;
      position: relative;
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      margin-left: 78px;
      img{
        width: 20px;
        height: 20px;
      }
      input{
        width: 355px;
        height: 43px;
        border:none;
        outline: none;
        background: #F6F6F6;
      }
      button{
        width: 124px;
        height: 40px;
        border: none;
        border-radius: 20px;
        background-color: #FAE569;
        font-size: 14px;
        color: #43200c;
        cursor: pointer;
      }
    } 
    /* 购物车 */
    .cart{
      width: 150px;
      height: 40px;
      background-color: #F2F2F2;
      border: 1px solid rgb(227, 225, 225);
      font-weight: 400;
      text-align: center;
      line-height: 40px;
      cursor: pointer;
      & span:nth-child(1){
        font-size: 18px;
        color: #F9D949;
        font-weight: bold;
      }
      & span:nth-child(2){
        font-size: 12px;
        color: #666666;
      }
    }
    }
  }
  
  /* 菜单部分 */
  #menu{
    width: 100%;
    height: 46px;
    background: #3F2511;
    .container{
      height: 100%;
      line-height: 46px;
      ul{
        display: flex;
        text-align: center;
        color: white;
        li{
          display: flex;
          width: 200px;
          cursor: pointer;
          &:hover{
            background: #FAE569;
            color: #000;
          }
        }
        .active{
            background: #FAE569;
            a{
              color: #000;
            }
        }
        a{
          width: 200px;
          height: 46px;
        color: white;
        }
       
      }
    }
  }
  
  /* 商品 */
  #product{
   .container{
     height: 400px;
     display: flex;
     margin-top: 20px;
    /* 商品图片 */
    .productImg{
     width: 320px; 
     height: 100%;
     position: relative;
     .left{
      width: 320px; 
      height: 100%;
       /* 大图 */
        ul{
          width: 100%;
          height: 320px;
          position: relative;
          margin-bottom: 10px;
          & li:first-child{
            display: block;
          }
          li{
            position: absolute;
            top: 0;
            left: 0;
            display: none;
            img{
              width: 100%;
              height: 100%;
            }
          }
          .active{
            display: block;
          }
          /* 区块 */
          .block{ 
            width: 160px;
            height: 160px;
            background: rgba(#666,.4);
            position: absolute;
            top: 0px;
            left: 0px;
            pointer-events: none; 
            display: none;
          }
        }
        /* 小图 */
        ol{
          height: 80px;
          display: flex;
          justify-content: space-around;
          img{
            width: 60px;
            height: 60px;
          }
          .on{
            width: 60px;
            height: 60px;
            border:2px solid red
          }
        }
     }
     .right{
       width: 600px;
       height: 100%;
       position: absolute;
       top: 0px;
       left: 346px;
       overflow: hidden;    
       display: none; 
     
       & img:first-child{
         display: block;
       }
       img{
        position: absolute;
        top: 0px;
        left: 0px;
        display: none;
      }
     }
    }
    /* 商品信息 */
    .productText{
      width: 590px; 
      height: 360px;
      padding:20px 30px;
       & h4:nth-child(1){
         width: 100%;
         font-size: 20px;
         overflow: hidden;
         line-height: 30px;
       }
       /* 价格 */
       .price{
         width: 570px;
         height: 50px;
         background: rgba(#ccc,.3);
         display: flex;
         line-height: 50px;
         padding-left: 20px;
         margin-top: 20px;
         & :first-child{
           color: #666;
           font-size: 14px;
           
         }
         & p:nth-child(2){
           margin-left: 30px;
           & span:nth-child(1){
             color: #DD4726;
             font-size: 28px;
           }
           & span:nth-child(2){
             font-size: 14px;
             color: #b1a9a5;
             text-decoration: line-through;
          }
         }
         
       }
       /* 运费 */
       .freight{
        width: 570px;
        height: 50px;
        display: flex;
        line-height: 50px;
        padding-left: 20px;
        font-size: 14px;
        color: #666;
        margin-top: 10px;
        & span:nth-child(2){
          margin-left: 30px;
          color: #b1a9a5;
        }
       }
       /* 月销量 */
       .sales-volume{
         width: 100%;
         height: 40px;
         border-top: 1px solid #ccc;
         border-bottom: 1px solid #ccc;
         display: flex;
         justify-content: space-around;
         color: #666;
         line-height: 40px;
         margin-top: 10px;
         & p:nth-child(1){
           span{
             color: red;
           }
         }
         & p:nth-child(3){
          span{
            color: rgb(99, 219, 99);
          }
        }
       }
       /* 加入购物车 */
       .add-cart{
        width: 100%;
        height: 50px;
        margin-top: 50px;
        text-align: right;
        button{
          width: 240px;
          height: 50px;
          border: 0px solid #000;
          background: #E86360;
          color: #fff;
          border-radius: 8px;
          font-size: 22px;
        }
       }
    }
    /* 商品推荐 */
    .productAdvert{
      width: 230px; 
      height: 100%;
      fieldset{
        margin-top: 10px;
        legend{
          text-align: center;
          font-size: 14px;
          color: #666666;
        }
        .product-picture{
          width: 140px;
          height: 140px;
          margin:10px auto;
          position: relative;
          img{
            width: 100%;
            height: 100%;
          }
          div{
            width: 100%;
            height: 20px;
            text-align: center;
            position: absolute;
            bottom: 0;
            left: 0;
            background: rgba(rgb(98, 96, 96),.7);
            line-height: 20px;
            color: rgb(30, 30, 30);
            font-size: 14px;
          }
        }
       .more{
         width: 100%;
         text-align: center;
         margin-top: 10px;
        span{
          font-size: 30px;
          color: #cccccc;
        }
       }
      }
    }
   }
  }
  
  /* 商品详情 */
  #product-details{
    .container{
      margin-top: 30px;
      border: 1px solid #ccc;
      border-top: none;
      p{
        display: flex;
        width: 100%;
        height: 40px;
        background: #ccc;
        line-height: 35px;
        text-align: center;
        span{
          display: inline-block;
          width: 100px;
          height: 100%;
          border-bottom: 1px solid rgb(248, 15, 15);
          color: rgb(248, 15, 15);
        }
      }
      .details{
        width: 100%;
        text-align: center;
        img{
          width: 800px;
          height: 500px;
          margin: 20px 0px; 
        }
      }
    }
  }
  
  /* 版权 */
  #foot{
    width: 100%;
    height: 240px;
    background: #484848;
    position: relative;
    margin-top: 30px;
    .container{
      .top{
        display: flex;
        align-items: center;
        padding: 34px 100px 28px 50px;
        .left{
          width: 300px;
          height: 150px;
          color: #fff;
          display: flex;
          justify-content: space-between;
          text-align: center;
          margin-right: 100px;
          img{
            width: 112px;
            height: 112px;
            border-radius: 18px;
            margin-top: 15px;
          }
          span{
            display: inline-block;
            width: 150px;
            height: 112px;
            h3{
              font-size: 36px;
            }
            p{
              font-size: 18px;
            }
          }
        }
        & p:nth-child(2){
          color: #fff;
          font-size: 20px;
          a{
            color: #fff;
            margin-left: 30px;
          }
        }
      }
      .buttom{
        color: #ffffff;
        font-size: 18px;
        text-align: center;
      }
    }
  }